<template>
  <div class="parent">
     <parent v-if="parentdata.parent" :parentdata="parentdata.parent" />
    <div class="info">
      <div class="name">{{parentdata.user.nickname}}</div>
      <div class="date">2小时前</div>
      <span class="huifu">回复</span>
    </div>
    <div class="midle">
      {{ parentdata.content }}
    </div>
  </div>
</template>

<script>
export default {
  name: "parent",
  props: ["parentdata"],
};
</script>

<style lang="less" scoped>
.parent {
  border: 1px solid #e4e4e4;
  padding: 0 3/360 * 100vw;
  margin: 0 3/360 * 100vw;
  color: #888;
  .midle {
    color: #696969;
    padding: 6/360 * 100vw 0;
  }
  .info {
    display: flex;
    align-items: center;
    .name {
      color: black;
    }
    .date {
      flex: 1;
      padding-left: 20/360 * 100vw;
      font-size: 10/360 * 100vw;
    }
    .huifu {
      font-size: 10/360 * 100vw;
    }
  }
}
</style>
